#include "stdafx.h"
#include "Track147.h"

unsigned short Track147::GetTrackNumber()
{
	if(DI02.Isset())
	{
		return DI02;
	}
	return 0;
}

void Track147::SetTrackNumber(unsigned short p_TrackNumber)
{
	DI02 = p_TrackNumber;
	if(p_TrackNumber!=0)
	{
		DI02.Set();
	}
	else
	{
		DI02.Unset();
	}
}

bool Track147::IsDeleteMessage()
{
	return (DI06.Isset() && (DI06.Del==1));
}

void Track147::SetAsDeleteMessage()
{
	DI06.Del = 1;
	DI06.Set();
}
